package com.itheima.method;

import java.util.Scanner;

public class Demo9Method {
    public static void main(String[] args) {
        method();
    }
    public static void method(){
        while (true){
            System.out.println("请输入您要查看的星期数:");
            System.out.println("如无需继续查看,请输入0退出程序");
            Scanner sc = new Scanner(System.in);
            int week = sc.nextInt();
            switch(week){
                case 0:
                    System.out.println("感谢您的使用");
                    return;
                case 1:
                    System.out.println("跑步");
                    break;
                case 2:
                    System.out.println("游泳");
                    break;
                case 3:
                    System.out.println("拳击");
                    break;
                default:
                    System.out.println("您的输入有误");
                    break;
            }
        }

    }
}
